<template>
  <div>
    <transition enter-active-class="animate__animated animate__bounceInLeft">
      <router-view></router-view>
    </transition>
    <footer>
      <router-link active-class="active" to="/index/home">首页</router-link>
      <router-link active-class="active" to="/index/cate">分类</router-link>
      <router-link active-class="active" to="/index/shop">购物车</router-link>
      <router-link active-class="active" to="/index/mine">我的</router-link>
    </footer>
  </div>
</template>

<script>
export default {

}
</script>

<style scoped>
footer{
  width: 100vw;
  height: 0.8rem;
  background-color: #fff;
  border: 1px solid #ccc;
  box-sizing: border-box;
  position: fixed;
  left: 0;
  bottom: 0;
  display: flex;
}
footer a{
  flex: 1;
  font-size: 0.3rem;
  text-align: center;
  line-height: 0.8rem;
}
.active{
  color: #ff4400;
}
</style>